<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="com.infomanage.po.*" %>
<%@page import="com.infomanage.vo.*" %>
<%@page import="com.infomanage.service.plan.*"%>
<%  response.addDateHeader("Expires", 0);response.setHeader("Pragma","no-cache"); response.setHeader("Cache-Control","no-cache");%>
<%
    request.setCharacterEncoding("UTF-8");
	String affairId = request.getParameter("affairId");
    if(affairId == null) affairId = "";
    
    AffairmanagePlanItem affairItem = AffairManagePlanService.loadAffairManagePlan(request, response, out);
    int personId = -1;
    int deptId = -1;
    String personname = "";
    String deptname = "";
    String executeTime = "";
    String checkObject = "";
    String content = "";
    String description = "";
    if(affairItem != null) {
    	AffairmanagePlan affair = affairItem.getBean();
		Department dept = affairItem.getDept();
		Person person = affairItem.getPerson();
		personId = affair.getPersonId();
	    deptId = affair.getDeptId();
	    personname = person.getName();
	    deptname = dept.getPath();
	    checkObject = affair.getCheckObject();
	    content = affair.getContent();
	    description = affair.getDescription();
	    executeTime = affair.getExcuteTime();
    } 
%>

<html>
<head>
	<title>内务管理计划</title>
	<link href="../../css/table.css" rel="stylesheet" type="text/css">
</head>
<body  rightmargin="0" bottommargin="0" leftmargin="0" topmargin="0">
	<form name="form1" action="affairManage_action.jsp" method="post" target="actionFrame">
	<input type="hidden" name="affairId" value="<%=affairId%>">
	<input type="hidden" name="actionType">
	<table class="dialogTable" cellpadding="0" cellspacing="0">
		<!-- 表头-->
		<tr class="dialogTableHeader">
			<td>内务管理计划</td>
		</tr>
		<!-- 表数据-->
		<tr class="dialogTableContent">
			<td>
				<!-- 数据项 -->
				<table class="dataTable">
					<col width="30%">
					<col width="70%">
					<tr>
						<td class="field">
							负责人
						</td>
						<td>
							<%=personname%>
						</td>
					</tr>
					<tr>
						<td class="field">
							所属单位
						</td>
						<td>
							<%=deptname %>
						</td>
					</tr>
					<tr>
						<td  class="field">
							检查对象
						</td>
						<td>
							<%=checkObject %>
						</td>
					</tr>
					<tr>
						<td class="field">
							计划执行日期
						</td>
						<td>
							<%=executeTime %>
						</td>
					</tr>
					<tr style="height: 100px">
						<td class="field">
							内容
						</td>
						<td valign="top">
							<textarea style="width: 100%;height: 100%;background-color:#dfe8f6" readonly><%=content %></textarea>
						</td>
					</tr>
					<tr style="height: 100px">
						<td class="field">
							备注
						</td>
						<td valign="top">
							<textarea style="width: 100%;height: 100%;background-color:#dfe8f6" readonly><%=description %></textarea>
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td class="tableBtn">
				<span onclick="window.print();">打印</span>			
				<span onclick="window.close();">关闭</span>
			</td>
		</tr>
		<tr valign="top">
			<td colspan="2">
				&nbsp;
			</td>
		</tr>
	</table>
	</form>
	<iframe src="#" frameborder="0" id="treeFrame" name="frame" style="display: none;position: absolute;"></iframe>
	<iframe src="#" name="actionFrame" style="display: none;"></iframe>
</body>
</html>